const fs = require("fs")

fs.readFile('./1/2/3.md', (err, data) => {
    if (err) {
       console.log(err);
    }
    console.log("file:",data.toString());
})

fs.readdir("./1", (err, data) => {
    console.log("dir:",data.toString());
})
fs.stat('./1/2/4.txt', (err, data) => {
    if (err) {
       console.log(err);
    }
    console.log("stat:",data);
})

const filesync=fs.readFileSync('./1/2/3.md')
console.log("filesync:",filesync.toString());
const dirsync=fs.readdirSync('./1')
console.log("dirsync:",dirsync.toString());
const statsync=fs.statSync('./1/2/4.txt')
console.log("statsync:",statsync);
var url="./1"

console.log("isdir:",url.isDir());